package com.school.test.search.utils;

/**
 * @author 马洁
 * @date 2020/1/4 - 12:36
 */
public class MyRegUtil {
    /**
     * 匹配括号，将"("转换为"[("，将")"转换为")]"。
     */
    public static String escapeBracket(String originalStr) {
        return originalStr.replace("(", "[(")
                .replace(")", ")]");
    }
}
